package com.iminutes.controller;
import com.iminutes.service.GoodService;
import com.iminutes.service.UserService;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * 10.综合案例：使用SpringIoc实现用户下单
 * 1.获取用户信息
 * 2.返回商品信息
 */
public class IndexController {
    public static void main(String[] args) {
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("applicationContext.xml");
        UserService us = (UserService) context.getBean("userService");
        us.getUser();
/*        GoodService gs = (GoodService) context.getBean("goodService");
        gs.getGood();*/

    }
}
